-- GENERATED SPELL FOR [Stonelash Flayer] --


function spell0_11737(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_11737', 614, 1)
end

function spell1_11737(pUnit, Event) --@Venom Sting,n/a--
pUnit:FullCastSpellOnTarget(5416,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11737', 45000, 1)
end

function Sorts_11737(pUnit, Event)
local choix_sorts_11737 = math.random(0, 1)
if choix_sorts_11737 == 0 then
pUnit:RegisterEvent('spell0_11737', 1, 1)
end
if choix_sorts_11737 == 1 then
pUnit:RegisterEvent('spell1_11737', 1, 1)
end
end

function mob11737_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11737', math.random(1500, 3000), 1)
end

function mob11737_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11737_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11737_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11737, 1, 'mob11737_Action')
RegisterUnitEvent(11737, 2, 'mob11737_Leave')
RegisterUnitEvent(11737, 3, 'mob11737_Kill')
RegisterUnitEvent(11737, 4, 'mob11737_Die')
